home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Crosscountry USA Photo Safari
/
Crosscountry USA Photo Safari.iso
/
Data
/
cc_base
/
pak00_16bit_f.pk3
/
switch_player.gl.p
< prev
next >
Wrap
Text File
|
2002-11-29
|
2KB
|
66 lines
{
Hidden = TRUE;
ChildID = {
GuiFullscreenPicture("switch_player") {
AnimationID = "image/switch_player.pcx";
X = 0;
Y = 0;
ScriptID = Script {
@activate{
ResPropSetInt(SELF, "timeout", 0);
}
@show {
resid Player;
resid SwitchPlayerText;
Player = ResPropGetResID(ResByName("Game"),"game_cur_player");
SwitchPlayerText = GuiSiblingByName("switch_player_text");
ResPropSetStr(
SwitchPlayerText,
"InputText",
StrFormatStr(
MangleSIDToStr(231/*"%s, it's your turn to play!"*/),
ResPropGetStr(Player,"player_name")
)
);
ResPropSetInt(SELF,"timeout",96);
ResPropSetInt(SwitchPlayerText,"Hidden",FALSE);
GuiToFront(GuiParent(SELF));
}
@animate {
int timeout;
ResPropAlias(SELF,"timeout","timeout");
if (timeout > 0) {
timeout -= 1;
} else {
ResPropSetInt(GuiParent(SELF),"Hidden",TRUE);
}
}
}
},
GuiTextInput("switch_player_text") {
Y = 115;
X = 0;
InputDisabled = TRUE;
InputHorizontalAlign = CENTER;
WordWrap = TRUE;
Width = 640;
Height = 35;
FontID = "font/verdana_orange_bold_14.tf";
ScriptID = Script {
@activate{
ResPropSetInt(GuiSiblingByName("switch_player"), "timeout", 0);
}
}
}
};
}